class Sungjuk_6_7{
	void title(){
		System.out.println("*** instanceof 연산자 ***");
		System.out.println("-----------------------");
	}
}
class Sungjuk_6_7_1{
	String hakbun;
	String name;
}
class Sungjuk_6_7_2{
	int jumsu;
}
class ex_6_7 {
	public static void main(String[] args){
		Sungjuk_6_7 test = new Sungjuk_6_7();
		test.title();
		Sungjuk_6_7_1 t1 = new Sungjuk_6_7_1();
		Sungjuk_6_7_2 t2 = new Sungjuk_6_7_2();
		
		if(t1 instanceof Sungjuk_6_7_1) System.out.println("t1은 Sungjuk_6_7_1의 객체");
		if(t2 instanceof Sungjuk_6_7_2) System.out.println("t2은 Sungjuk_6_7_2의 객체");
	}
}